 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<table width="100%" border="0"  align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td rowspan="3" class="Text_12_black">
		 <div align="left"><span> &nbsp;&nbsp;&nbsp;: :<a href="<?php echo $this->webroot;?>admin/" class="Link_Title_12_black">Trang chính</a></span> <span >&gt;&gt; </span><a href="<?php echo $this->webroot;?>admin/contacts/"class="Link_Text_12_black" >Danh sách bạn đọc liên hệ</a></div>
         <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
      <tbody>
       <tr>
          <td width="12"><img src="<?php echo $this->webroot;?>img/CM1_01.gif" height="11" width="12" /></td>
          <td colspan="2" background="<?php echo $this->webroot;?>img/CM1_02.gif"><img src="<?php echo $this->webroot;?>img/spacer.gif" height="11" width="12" /></td>
          <td width="11"><img src="<?php echo $this->webroot;?>img/CM1_03.gif" height="11" width="11" /></td>
        </tr>
        <tr>
          <td width="12" height="30" background="<?php echo $this->webroot;?>img/CM1_08.gif"><img src="<?php echo $this->webroot;?>img/spacer.gif" height="10" width="12" /></td>
          <td height="30" colspan="2" align="center" bgcolor="#E2E2E2"><span class="Title_14_Red">Danh sách bạn đọc liên hệ</span></td>
          <td valign="top" background="<?php echo $this->webroot;?>img/CM1_06.gif"><img src="<?php echo $this->webroot;?>img/spacer.gif" height="10" width="11" /></td>
        </tr>
        <tr>
          <td width="12" height="100%" background="<?php echo $this->webroot;?>img/CM1_08.gif">&nbsp;</td>
          <td height="100%" colspan="2" align="center">
		  <table class="antiintro" cellspacing="0" cellpadding="0" width="100%" 
        border="0" style="border:#CCCCCC 1px solid;">
			 
             <tbody>
                 <tr>
                  <td align="right">
				  <?php
						echo $this->Form->create(array('name'=>'fview','class'=>'fsearch'));
					?>
					<table border=0 class='Text_12_black'>
					<tr>
						<td align='right'>Từ khóa&nbsp;</td>
						<td align='right' >
							<?php echo $this->Form->input('key',array('label'=>false,'value'=>$key));?>
						</td>
						<td align='right' width='200' class='Text_12_black'>
						Trạng thái&nbsp;
							<?php
								echo $this->Form->select('status',array('Chưa đọc','Đã đọc'),$stt,array('onchange'=>'return submitform(this.value);'));	
							?>
						</td>
						<td width='60'><?php echo $this->Form->submit('Tìm kiếm');?></td>
						<td><?php echo $this->Form->end();?></td>
					</tr></table>
					 
				  </td>
                </tr>
                <tr>
                <td><!--Start Table-->
                   <?php
						echo $this->Form->create(array('name'=>'frmList'));
					?>
                     <table cellspacing="1" cellpadding="2" width="100%" border="0" class="index">
                      <tbody>
                        <tr style="height:35px;">
                          <td width="40" height="26" bgcolor="#d6d6d6"><div align="center">
                           <input type="checkbox" id="chkall" name="chkall" onClick="docheck(document.frmList.chkall.checked,0);"/>
                            <?php echo $this->Form->hidden('chon',array('name'=>'chon'))?>
                          </div></td>
                          <td bgcolor="#d6d6d6" width="200"class="Title"><div align="left"><?php echo $this->Paginator->sort('Họ tên','name');?> </div></td>
                         <td width="322"  bgcolor="#d6d6d6" class="Title"><div align="left"><?php echo $this->Paginator->sort('Điện thoại','mobile');?> </div></td>
 						  <td width="189" align="center" bgcolor="#d6d6d6" class="Title"><div align="left"><?php echo $this->Paginator->sort('Email','email');?></div></td>
 						  <td width="80" align="center" bgcolor="#d6d6d6" class="Title"><?php echo $this->Paginator->sort('Trạng thái','status');?></td>
                          <td width="100" align="center" bgcolor="#d6d6d6" class="actions">Thao tác </td>
                          </tr>
  						<?php
						$i=0;
							foreach ($contacts as $contacts):
							$i++;
						?>
                        <tr <?php if($i%2==0){?>class="trclass"<?php }else{?>class="trclass1"<?php }?>>
                          <td height="26" >
						  <div align="center"><?php echo $this->Form->checkbox('chkid',array('name'=>'checkid','value'=>$contacts['Contact']['id']))?></div>						  </td>
                          <td ><div align="left"><?php echo $contacts['Contact']['name']; ?></div></td>
						   <td ><div align="left"><?php echo $contacts['Contact']['mobile']; ?></div></td>
                           <td align="center">
                            <div align="left"><?php echo $contacts['Contact']['email']; ?></div></td>
                           <td align="center">
						   <?php
								$stt= 'Chưa xem';
								if($contacts['Contact']['status'] !=1){
									$stt= 'Đã xem';
								}
								echo $stt;
							?>
        					</td>
                          <td align="center" class= 'actions' ><?php echo $this->Html->link(__('Xem', true), array('action' => 'view', $contacts['Contact']['id'])); ?> <?php echo $this->Html->link(__('Xóa', true), array('action' => 'delete', $contacts['Contact']['id']), null, sprintf(__('Bạn có chắc chẵn muốn xóa mục này không?', true), $contacts['Contact']['id'])); ?></td>
                          </tr>
					<?php endforeach; ?>
                       </tbody>
                    </table>
						 
                   <!--End Table--></td>
              </tr>
              <tr>
                <td height="50"><div align="right"><?php echo $this->element("padding");?></div></td>
                </tr>
            </tbody>
          </table>          </td>
          <td valign="top" background="<?php echo $this->webroot;?>img/CM1_06.gif">&nbsp;</td>
        </tr>
		
        <tr>
          <td width="12"  background="<?php echo $this->webroot;?>img/CM1_08.gif"></td>
          <td align="center" valign="middle" width="637">&nbsp;</td>
          <td colspan="2" align="right"><img src="<?php echo $this->webroot;?>img/CM1_16.gif" border="0" height="23" width="22" /><img src="<?php echo $this->webroot;?>img/CM1_07.gif" border="0" height="23" width="11" /></td>
          </tr>
        <tr>
          <td width="12" style="height: 12px;"><img src="<?php echo $this->webroot;?>img/CM1_08.gif" border="0" height="30" width="12" /></td>
          <td style="height: 12px;" align="center" valign="middle" width="637"><a href="javascript:window.history.back(-1);" class="Link_Text_12_black"><img src="<?php echo $this->webroot;?>img/back.gif" align="absmiddle" border="0" /> Previous</a>&nbsp;<a href="#top" class="Link_Text_12_black"><img src="<?php echo $this->webroot;?>img/top.gif" align="absmiddle" border="0" /> Top</a></td>
          <td colspan="2" align="right" style="height: 12px;"><img src="<?php echo $this->webroot;?>img/CM1_10.gif" border="0" height="30" width="38" /><img src="<?php echo $this->webroot;?>img/CM1_11.gif" height="30" width="11" /></td>
          </tr>
        <tr>
          <td width="12"><img src="<?php echo $this->webroot;?>img/CM1_12.gif" height="13" width="12" /></td>
          <td background="<?php echo $this->webroot;?>img/CM1_13.gif" width="637"><img src="<?php echo $this->webroot;?>img/spacer.gif" height="13" width="10" /></td>
          <td align="right" background="<?php echo $this->webroot;?>img/CM1_13.gif"><img src="<?php echo $this->webroot;?>img/CM1_14.gif" height="13" width="38" /></td>
          <td bgcolor="#0000FF"><img src="<?php echo $this->webroot;?>img/CM1_15.gif" height="13" width="11" /></td>
        </tr>
      </tbody>
    </table>
		</td>
         
      </tr>
</table>

<script>  
   var title = ('Danh sách bạn đọc liên hệ');   
	function submitform(){
		document.fview.submit();
	}
 </script>